<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> --%>
<%
	String path = request.getContextPath();
	//获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="viewport" content="width=device-width,target-densitydpi=device-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
	<title>BD总结</title>
<link href="css/iphonecss/iphonecss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function start(){
		 $.ajax({
			 type :'POST',
			 url :'<%=basePath%>listAllDaily.action',
			 success : function(data){
				var json= JSON.parse(data);
				 if(json.success==true){
					 var time=json.data+"";
					 $("#test").val(time);
					 var strs= new Array(); //定义一数组
					 strs=time.split(","); //字符分割 
					var htmlInner="";
					 for(var i=0;i<strs.length;i++){
						htmlInner += "<li><a href='dailyDetailAction.action?createTime="+strs[i]+"'>"+strs[i]+"</a></li>"; 
					 }
			  $("#dailyList").html(htmlInner);
			 }else{
			 }
		}
		}); 
	}
</script>
</head>

<body style="background:#f0f0f0" onload="start()">
<h2>BD总结<a href="toAddDailyAction.action"  class="new">新增</a></h2>
	<ul class="ul" id="dailyList">
    </ul>
</body>
<script type="text/javascript">

</script>
</html>